<%@page import="com.cn.entity.Leibie"%>
<%@page import="com.cn.dao.LeibieDao"%>
<%@page import="com.cn.entity.News"%>
<%@page import="java.util.List"%>
<%@page import="com.cn.dao.NewsDao"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>北京医院</title>
</head>
<body>

<h4>新闻管理</h4>

<h5>查看新闻</h5>
<br>
<table>
<tr>

<td>新闻编号</td>

<td>新闻主题</td>



<td>发布时间</td>

<td>所属类别</td>

<td>新闻内容</td>
</tr>
<%
 int newsid=1;
Object o=request.getParameter("newsid");
 if (o!=null){ String id=o.toString();
 newsid=Integer.parseInt(id);}
 NewsDao nd=new NewsDao();
 News news=nd.selectNews(newsid);
 
%>

<tr>
<td><%=1 %></td>
<td><%=news.getTopic() %></td>
<td><%=news.getDate() %></td>
<td><%=news.getLeibie().getLeibie()%></td>
<td><%=news.getDetail() %> </td>
</tr>


</table>






</body>
</html>